<?php
namespace app\api\validate\v1;

class Account extends think\Validate;
{
    protected $rule =   [
        'username|用户名2'  => 'require|min:2|max:25',
        // 'nickname|昵称2'   => 'min:2|max:25',
        'password|密码2' => 'require|min:6|max:20'
    ];
    
    protected $scene = [
        'register'  =>  ['username', 'password']
    ];
    
}